<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ include file="/page/core/common/commonvariable.jsp"%>
<div id="edit-data-warp">
	<form class="form-horizontal" role="form" method="post">
		<div class="col-sm-12">
			<div class="form-group  col-sm-6 ">
				<div class="col-xs-26">
					<label class="control-label">角色名 <span style="color: red;">*</span></label>
				</div>
				<div class="col-xs-74">
					<input type="text" onblur="commonutil.trim(this);" id="roleName"
						class="form-control b-validate" ng-model="moduleroleForm.roleName"
						validate-feature="require" validate-maxCharLength="50" />
				</div>
			</div>
		</div>

		<div class="col-sm-12">
			<div class="form-group  col-sm-6 ">
				<div class="col-xs-26">
					<label class="control-label">模块名 <span style="color: red;">*</span></label>
				</div>
				<div class="col-xs-74">
					<select id="modules" class="form-control"
						ng-model="moduleroleForm.moduleInfoId">
						<option value="">模块名</option>
						<c:forEach var="moduleInfo" items="${listModuleInfos}">
							<option value="${moduleInfo.moduleInfoId}">${moduleInfo.moduleName}</option>
						</c:forEach>
					</select>
				</div>
			</div>
		</div>


		<div class="col-sm-12">
			<div class="form-group  col-sm-6 ">
				<div class="col-xs-26">
					<label class="control-label">备注 <span style="color: red;">*</span></label>
				</div>
				<div class="col-xs-74">
					<textarea onblur="commonutil.trim(this);"
						class="form-control b-validate" style="width: 680px" rows="4"
						ng-model="moduleroleForm.roleDesc" validate-maxCharLength="150"></textarea>
				</div>
			</div>
		</div>

		<div class="col-sm-12">
			<div class="form-group  col-sm-6 ">
				<div class="col-xs-26">
					<label class="control-label">默认角色<span style="color: red;">*</span></label>
				</div>
				<div class="col-xs-74">

					<div class="radio">
						<label> <input type="radio" name="isDefaultRole" value="0"
							ng-model="moduleroleForm.isDefaultRole">否
						</label>
					</div>
					<div class="radio">
						<label> <input type="radio" name="isDefaultRole" value="1"
							ng-model="moduleroleForm.isDefaultRole">是
						</label>
					</div>
				</div>
			</div>
		</div>


		<div class="col-sm-12" style="margin-top: 20px">
			<div class="col-sm-6">
				<input type="button" ng-click="doCancel();"
					class="btn btn-primary btn-block" value="取&nbsp;&nbsp;消" />
			</div>
			<div class="col-sm-6">
				<input type="button" ng-click="doAdd();"
					class="btn btn-primary btn-block" value="保&nbsp;&nbsp;存" />
			</div>
		</div>
	</form>
</div>
